package com.fms.fmsapi.controller;


import com.fms.fmsapi.entity.Contract;
import com.fms.fmsapi.entity.R;
import com.fms.fmsapi.service.impl.ContractServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 张力文
 * @since 2024-04-03
 */
@RestController
@RequestMapping("/contract")
public class ContractController {

    @Autowired
    ContractServiceImpl contractService;

    @GetMapping("/getInfo")
    public R getInfo(String uuid){
        Contract contract = contractService.getById(uuid);
        return R.success(contract);
    }
}

